package cn.com.ebidding.business.service;


import cn.com.ebidding.business.entity.UserGroup;
import cn.com.ebidding.business.entity.UserPwd;
import cn.com.ebidding.business.vo.UserGroupConditionVO;
import cn.com.ebidding.framework.object.AbstractService;
import cn.com.ebidding.framework.object.ResponseVO;
import cn.com.ebidding.persistence.beans.SysUserGroup;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 用户
 *
 * @author 扫地僧 (saods@ebidding.com.cn)
 * @version 1.0
 * @website https://ksp.ebidding.com.cn
 * @date 2018/4/16 16:26
 * @since 1.0
 */
public interface SysUserGroupService extends AbstractService<UserGroup, Long> {

    /**
     * 分页查询
     *
     * @param vo
     * @return
     */
    PageInfo<UserGroup> findPageBreakByCondition(UserGroupConditionVO vo);


//    /**
//     * 根据用户组ID，获取所有用户
//     *
//     * @param userId
//     * @return
//     */
//    List<UserGroup> getByGroupId(Long userId);

    /**
     * 根据用户ID、组ID查询用户
     * @param id
     * @return
     */
    UserGroup findUser(UserGroup userGroup);


    ResponseVO add(UserGroup userGroup);

}
